package com.example.adms.attendance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.adms.attendance.entity.AllAttDB;
import com.example.adms.attendance.entity.Attendance;
import com.example.adms.attendance.vo.DepartLateAndEarlyVo;
import com.example.adms.attendance.vo.MostEarlyUser;
import com.example.adms.attendance.vo.MostLateUser;

import java.util.List;
import java.util.Map;

public interface AttendanceMapper extends BaseMapper<Attendance> {
    List<AllAttDB> selectAttendanceByConditionForAll(Map<String, Object> map);

    List<DepartLateAndEarlyVo> selectCountLateByDepart(Map<String,Object> map);

    List<DepartLateAndEarlyVo> selectCountEarlyByDepart(Map<String, Object> map);

    MostLateUser selectMostLateUser(Map<String, Object> map);

    MostEarlyUser selectMostEarlyUser(Map<String, Object> map);
}
